/**
 * Created by xnr on 20/2/24.
 */


import * as admincustomer from './admincustomer';
import * as system from './system';
import * as role from './role';
import * as config from './config';
import * as dict from './dict';
import * as activitymsg from './activitymsg'
import * as paradise from './paradise'
import * as goods from './goods'
import * as banner from './banner'
import * as store from './store'
import * as rem from './rem'
import * as order from './order'
import * as afterSale from './afterSale'
import * as message from './message'
import * as customerService from './customerService'
import * as askQuestions from './askQuestions'
import * as agreement from './agreement'
import * as fund from './fund'
import * as city from "./city"
import * as recycleBin from "./recycleBin"
import * as warehouse from "./warehouse"
import * as operate from "./operate"
import * as shopList from "./shopList"
import * as opOrder from "./opOrder"
import * as user from "./user"
import * as toker from "./toker"
import * as brand from "./brand"
import * as finance from "./finance"
import * as account from "./account"
import * as integral from "./integral"
import * as outorder from "./outorder"
import * as tixian from "./tixian"
import * as teacher from "./teacher"
import * as course from "./course"
import * as train from "./train"
import * as comment from "./comment"
import * as chart from "./chart"
const apiObj = {
    chart,
    comment,
    train,
    course,
    teacher,
    account,
    finance,
    brand,
    toker,
    user,
    opOrder,
    shopList,
    operate,
    warehouse,
    recycleBin,
    city,
    fund,
    agreement,
    askQuestions,
    customerService,
    message,
    afterSale,
    admincustomer,
    system,
    role,
    config,
    dict,
    paradise,
    goods,
    activitymsg,
    banner,
    store,
    rem,
    order,
    integral,
    outorder,
    tixian
}

const install = function(Vue) {
    if (install.installed) return
    install.installed = true
    Object.defineProperties(Vue.prototype, {
        $api: {
            get() {
                return apiObj
            }
        }
    })
}
export default {
    install
}